package com.itheima.day16_多态接口.demo03;

public class Dog extends Animal{
    public Dog() {
    }

    public Dog(String age, String colour) {
        super(age, colour);
    }

    @Override
    public void eat(String something){
        System.out.println(getAge()+"岁的"+getColour()+"颜色的狗两只前腿死死的抱住"+something+"猛吃");
    }

    public void lookHome(){
        System.out.println("狗看家");
    }
}
class Cat extends Animal{
    public Cat() {
    }

    public Cat(String age, String colour) {
        super(age, colour);
    }

    @Override
    public void eat(String something) {
        System.out.println(getAge()+"岁的"+getColour()+"颜色的猫眯着眼睛侧着头吃"+something);
    }

    public void catchMouse(){
        System.out.println("猫逮老鼠");
    }
}
